<template>
	<agreement v-if="content==1"/>
	<policy v-else/>
</template>

<script setup>
	import {onLoad,onReady} from "@dcloudio/uni-app";
	import {ref} from "vue"
	import policy from "./components/policy/policy.vue"
	import agreement from './components/agreement/agreement.vue'
	
	const content=ref(0)
	const titleType = ref(0)
	onLoad((option)=>{
		uni.setNavigationBarTitle({
			title: option.id==1?'用户协议':'隐私政策'
		});
		content.value = option.id
	})
</script>
